package org.applet.game.framework.core;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class ThreadResource {

	private static ExecutorService pool = Executors.newCachedThreadPool();
	
	public static void executeMagic(Runnable task)
	{
		pool.execute(task);
	}
	
	public static void executeSpriteMagicAction(Runnable task)
	{
		pool.execute(task);
	}
	public static void executeNPC_AI(Runnable task)
	{
		pool.execute(task);
	}
}
